const App = {
    // mixins: [Query],//配置文件，路径/utils/mixins.js
    data() {
        return {
            photo,
            Data: [],
            fileUrl:'',
            dialog:false
        }
    },
    mounted() {
        let ls_URL = window.location.href;
        let Assistance_Log_SerialNumber = getQueryObject(ls_URL, "nodeKey");// 获取 nodeKey 参数
        this.handleShow(Assistance_Log_SerialNumber);
    },
    methods: {
        handleShow(Assistance_Log_SerialNumber) {
            $.ajax({
                headers: requestHeaders(),
                url: `${mh}/generalBusiness/generalQueryBySQLSerialNumber`,
                method: "post",
                data: {
                    SQLSerialNumber: "t_party_members_assistance_return_visit",
                    Condition: window.btoa(unescape(encodeURIComponent("%"+Assistance_Log_SerialNumber+"%"))),
                },
                success: (res) => {

                    this.Data = res;
                },
                complete: (XMLHttpRequest) => {
                    requestPretreatment(XMLHttpRequest);
                },
            });
        },
        handleHF(row){
            window.location.href = "./add2.html?action=Add&nodeKey=" + row.Assistance_Log_SerialNumber;
        },
        handlePreview(row){
            this.fileUrl = this.photo + row.Attachment_URL;
            this.dialog = true;
        },
        goBack() {
            window.history.back();
        },
    },
};

const { createApp } = Vue;
const app = createApp(App);
//这种方式是引入全部图标，无需单个引入
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component);
}
app.component('yl-online-preview', ylOnlinePreview)
const ElMessage = ElementPlus.ElMessage;
app.use(ElementPlus,{locale: zhCn});
app.mount("#app");
